package net.homeip.net.tinframework.controller.home;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.support.RequestContextUtils;

import net.homeip.net.tinframework.constants.FrameworkConstants;
import net.homeip.net.tinframework.controller.FrameworkBaseController;

public class HomeController extends FrameworkBaseController {

    @Override
    public ModelAndView handleRequest(HttpServletRequest request,
            HttpServletResponse response) {

        String langID = RequestContextUtils.getLocale(request).getLanguage();
        
        System.out.println("Lang ID: " + langID);
        
        ModelAndView mv = new ModelAndView(FrameworkConstants.HOMEURL);
        return mv;
    }
}
